Barakus_Core_Database = Class.extend({
	init: function()
	{
		this.dbs = [];
	},
	use: function(dbTag)
	{
		if (dbTag == null)
		{
			for (var db in this.dbs)
			{
				return db.db;
			}
		}
		return this.dbs[dbTag].db;
	},
	db: function(file, tag)
	{
		this.dbs[tag] = {file: file, db: new JSON_FILE(file, [])};
	}
});